package JDK动态代理;

public class Main {
    public static void main(String[] args) {
        TeacherB teacherB = new TeacherB();
        DynamicProxy dynamicProxy = new DynamicProxy(teacherB);
        TeacherInterface teacherInterface=(TeacherInterface)dynamicProxy.getProxy();
        teacherInterface.teachOffLine("数学");

    }
}
